﻿using System.Collections.Generic;

namespace Portal.Data.Entity
{
    public class TieuThuyetJson
    {
        #region Json Models
        public class JsonAuthorPaging
        {
            public int Page { get; set; }
            public int TotalItem { get; set; }
            public int PageSize { get; set; }
            public int TotalPage { get; set; }
            public List<JsonAuthor> Authors { get; set; }
        }
        public class JsonAuthor
        {
            public int Id { get; set; }
            public string Name { get; set; }
            public string FullName { get; set; }
        }
        public class JsonBookPaging
        {
            public int Page { get; set; }
            public int TotalItem { get; set; }
            public int PageSize { get; set; }
            public int TotalPage { get; set; }
            public List<JsonBook> Books { get; set; }
        }
        public class JsonChapPaging
        {
            public int Page { get; set; }
            public int TotalItem { get; set; }
            public int PageSize { get; set; }
            public int TotalPage { get; set; }
            public List<JsonContent> Chaps { get; set; }
        }
        public class JsonBookDetail
        {
            public JsonBook Book { get; set; }
            public List<JsonContent> Chaps { get; set; }
            public List<JsonContent> LatestChaps { get; set; }
            public List<JsonCategory> Categories { get; set; }
            public int TotalChap { get; set; }
        }
        public class JsonCategory
        {
            public int Id { get; set; }
            public string Name { get; set; }
            public string FullName { get; set; }
        }
        public class JsonBook
        {
            public int Id { get; set; }
            public int AuthorId { get; set; }
            public string AuthorName { get; set; }
            public string FullName { get; set; }
            public string Description { get; set; }
            public bool Finish { get; set; }
            public bool IsHot { get; set; }
            public int Visit { get; set; }
            public int TotalChap { get; set; }
            public int LastChapId { get; set; }
            public string LastChapTitle { get; set; }
            public string Thumb80 { get; set; }
            public string Thumb142 { get; set; }
            public string CreatedDate { get; set; }
            public string ModifiedDate { get; set; }
            public double RateAverage { get; set; }
            public int RateTotal { get; set; }
            public string WebUrl { get; set; }
        }
        public class JsonContent
        {
            public int Id { get; set; }
            public int BookId { get; set; }
            public string Title { get; set; }
            public int Chapter { get; set; }
            public string Body { get; set; }
            public string CreatedDate { get; set; }
            public int NextChapId { get; set; }
            public int PrevChapId { get; set; }
            public string WebUrl { get; set; }
        }
        #endregion
    }
}
